<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      th:replace="layouts/master(title='新增学生')"><!-- layout文件路径-->



<th:block th:fragment="css">
    <link rel="stylesheet" href="/plugins/bootstraptable/bootstrap-table.min.css">
    <link rel="stylesheet" href="/css/_all-skins.min.css">
</th:block>
<div th:fragment="content">
    <div class="content">
        <div class="row">
            <div class="col-md-12">
                <div class="box box-primary">
                    <div class="box-header with-border">
                        <h3 class="box-title">新增学生信息</h3>
                    </div>
                    <!-- /.box-header -->
                    <!-- form start -->
                    <form role="form" action="/webapi/student/add" method="post">
                        <div class="box-body">
                            <div class="form-group">
                                <label for="name">学生姓名</label>
                                <input class="form-control" id="name" type="text" name="name">
                            </div>
                            <div class="form-group">
                                <label for="sex">性别</label>
                                <input class="form-control" id="sex" type="text" name="sex">
                            </div>
                            <div class="form-group">
                                <label for="score">成绩</label>
                                <input class="form-control" id="score" type="number" name="score">

                            </div>
                        </div>
                        <!-- /.box-body -->

                        <div class="box-footer">
                            <button class="btn btn-primary" type="submit">新增</button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

<div th:fragment="scripts">

<!--    <script  type="text/javascript" src="/pagejs/add.js"></script>-->
</div>
</html>